/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
  //
  clearMocks: true,
  collectCoverage: true,
  coverageDirectory: "coverage",
  coverageProvider: "v8",
  testMatch: ["**/__tests__/*.test.[jt]s?(x)"], // __tests__目录下的 j(t)s(x) 测试文件
  preset: "ts-jest",
  testEnvironment: "jsdom",
  snapshotSerializers: ["@emotion/jest/serializer"],
  setupFilesAfterEnv: ["./src/__tests__/jest-setup.ts"],
};
